/*
**NCS log Library head file
**This module provide the log API for NCS 
**
**
**Copyright (C) 2016-xxxx andisat <www.andisat.com>
**
**Author: andisat
**Date:2016-1-10
**
*/

#ifndef __NCS_LOG__
#define __NCS_LOG__

#include <syslog.h>

#define LOG_BUF_MAX  256

#define DEBUG LOG_DEBUG
#define INFO LOG_INFO
#define WARN LOG_WARNING
#define ERR LOG_ERR

int log_flag;

int ncs_openlog(const char *progname, int option,int facility);
void ncs_log(const int facility, const char *format, ...);
void ncs_log_new(int severity, const char *msg);
void ncs_closelog();

#endif

